#include<stdio.h>
double wen(int *p,int n)
{
	int i;
	int sum=0;
	double res;
	for(i=0; i<n; i++)
	{
		sum=sum+(*(p+i));
	}
	res=((double)sum)/((double)n);
	return res;
}
int main ()
{
	int t;int temp;
	int i,j;
	scanf("%d",&t);
	int n,v,w;
	int count=0;
	int concentration[200];
	double max=0.00;
	while(t--)
	{
		max=0.00;
		scanf("%d %d %d",&n,&v,&w);
		for(i=0; i<n; i++)
		{
			scanf("%d",&concentration[i]);
		}
//		for(i=0; i<n; i++)
//		{
//			printf("%d",concentration[i]);
//		}
//		printf("\n");
		for(i=0; i<n-1; i++)
		{
			for(j=0;j<n-1-i;j++)
			{
				if(concentration[i]>concentration[i+1])
				{
					temp=concentration[i];
					concentration[i]=concentration[i+1];
					concentration[i+1]=temp;
				}
			}
		}
		for(i=0; i<n; i++)
		{
//			printf("%f\n",wen(&concentration[0],i+1));
			if(wen(concentration,i+1)>w)
			{
				break;
			}
			if(wen(&concentration[0],i+1)>max)
			{
				max=wen(&concentration[0],i+1);
			}
		}
		count=i;
		double result;
		result=(int)(max+0.5)/100.0;
		printf("%d %.2f\n",count*v,result);
	}
	return 0;
}
